package com.easy.common.bean;

import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("category")
@Getter
@Setter
@EqualsAndHashCode
@NoArgsConstructor
@ToString
public class Category {
	@TableId(value = "id",type =IdType.AUTO )
	private Integer id;
	@TableField(value = "code")
	private String code;
	@TableField(value = "name")
	private String name;
	@TableField(value = "description")
	private String description;
	@TableField(value = "pId")
	private Integer pId;
	@TableLogic
	private Integer isdel;	
	@TableField(exist = false)
	private List<Category> categoryList;
	

}
